package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Loss;
import cn.wolfcode.crm.query.LossQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LossMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Loss record);

    Loss selectByPrimaryKey(Long id);

    List<Loss> selectAll();

    int updateByPrimaryKey(Loss record);

    Integer queryForCount(LossQueryObject qo);

    List<Loss> queryForList(LossQueryObject qo);

    void insertLossItemId(@Param("lossId") Long lossId, @Param("lossItemId") Long lossItemId);
}